package com.wangxiaonan.berry.repository;

import com.alibaba.fastjson.JSONObject;
import com.wangxiaonan.berry.config.FeignRepository;
import feign.Headers;
import feign.Param;
import feign.RequestLine;

/**
 * @Author: wangxiaonan
 * @Date: 2019/7/3
 **/
@FeignRepository(uriPropertyName = "maxent-uri")
public interface MaxentRepository {

    @RequestLine("GET /api/v1/{secretKey}/tick/{tick}")
    @Headers("Content-Type:charset=UTF-8")
    JSONObject query(@Param("secretKey") String secretKey, @Param("tick") String tick);
}
